/*
 * This source code is part of TWaver 4.0
 *
 * Serva Software PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * Copyright 2002 - 2011 Serva Software. All rights reserved.
 */

package demo.editor.pipe;

import twaver.TWaverUtil;
import twaver.network.TNetwork;
import twaver.network.toolbar.BaseNetworkDnDButton;
import demo.editor.pipe.element.RoundPipe;
import demo.editor.pipe.element.SquarePipe;

public class PipeButton extends BaseNetworkDnDButton {
	
	public static class SquarePipeButton extends PipeButton{
		public SquarePipeButton(TNetwork network) {
			super(SquarePipe.class, network);
			this.setIcon(TWaverUtil.getIcon("/demo/editor/pipe/element/SquarePipe.png"));
		}
	}
	public static class RoundPipeButton extends PipeButton{
		public RoundPipeButton(TNetwork network) {
			super(RoundPipe.class, network);
			this.setIcon(TWaverUtil.getIcon("/demo/editor/pipe/element/RoundPipe.png"));
		}
	}
	
	public PipeButton(Class elementType, TNetwork network){
		super(network, elementType);
        this.setToolTipText(TWaverUtil.getClassNameWithoutPackage(elementType));
	}
}